<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>

<xsl:include href='../xsl.include.main.xsl'/>

<xsl:template name="iniziomsg">
 <xsl:param name="status"/>
 <xsl:param name="sexid"/>
 <xsl:param name="certified"/>
 <xsl:param name="senderid"/>
 <xsl:param name="nick"/>
 <xsl:param name="datetime"/>
 <xsl:param name="subject"/>

		<TR vAlign="top"> 
			<TD width="8" background="/imgs/pvts/box-l-back.gif" bgcolor="#93D6FF"></TD>
			<TD width="100%" align="left" style="padding:2px;" bgcolor="#93D6FF">
			<span style="width:20%;">Messaggio da:</span>
				<xsl:call-template name="user">
					<xsl:with-param name="status" select="$status"/>
					<xsl:with-param name="sexid" select="$sexid"/>
					<xsl:with-param name="certified" select="$certified"/>
					<xsl:with-param name="userid" select="$senderid"/>
					<xsl:with-param name="nick" select="$nick"/>
				</xsl:call-template>
			</TD>
			<TD width="8" background="/imgs/pvts/box-r.gif" bgcolor="#93D6FF"></TD>
		</TR>
		<TR vAlign="top"> 
			<TD width="8" background="/imgs/pvts/box-l-back.gif" bgcolor="#93D6FF"></TD>
			<TD width="100%" align="left" style="padding:2px;" bgcolor="#93D6FF">
			<span style="width:20%;">Ricevuto il:</span>
				<xsl:value-of select="substring($datetime,9,2)"/>-<xsl:value-of select="substring($datetime,6,2)"/>-<xsl:value-of select="substring($datetime,1,4)"/>&#160;<xsl:value-of select="substring($datetime,12,12)"/>
  			</TD>
			<TD width="8" background="/imgs/pvts/box-r.gif" bgcolor="#93D6FF"></TD>
		</TR>
		<TR vAlign="top"> 
			<TD width="8" background="/imgs/pvts/box-l-back.gif" bgcolor="white"></TD>
			<TD width="100%" align="left" style="padding-left:10px;padding-bottom:10px;padding-top:10px;" bgcolor="white">
				<span style="width:100%;" class="blogBody">
				<b><xsl:value-of select="$subject"/></b>
				</span>
  			</TD>
			<TD width="8" background="/imgs/pvts/box-r.gif" bgcolor="white"></TD>
		</TR>

</xsl:template>



<xsl:template name="finemsg">
	<xsl:param name="msgid"/>
	<xsl:param name="answerid"/>
	<xsl:param name="senderid"/>

		<TR vAlign="top"> 
			<TD width="8" background="/imgs/pvts/box-l-back.gif" bgcolor="#93D6FF"></TD>
			<TD width="100%" align="center" style="padding-top:5px;" bgcolor="#93D6FF">
		<form style="display:inline;" action="/mailbox/mailbox.aspx" name="reply">
		<input type="hidden" name="msgid" value="{$msgid}"/><input type="submit" value="Conferma segnalazione"/>
		<input type="hidden" name="action" value="CONFIRMABUSE"/>
		</form>
  			</TD>
			<TD width="8" background="/imgs/pvts/box-r.gif" bgcolor="#93D6FF"></TD>
		</TR>

</xsl:template>

<xsl:template match="row">

<div style="text-align:center; padding:10px;">
Se ritieni che il testo di questo messaggio sia offensivo, volgare,<br/>o che sia catolagabile come spamming indesiderato,<br/>per favore segnalacelo.
</div>
<div style="text-align:center; padding:10px;">
<b>Confermando la segnalazione ad abuse@goparty.it, <br/>autorizzi i gestori del servizio<br/>a leggere il contenuto di questo messaggio.</b>
</div>
<TABLE class="body" cellSpacing="0" cellPadding="0"  border="0" width="100%">
		<TR> 
			<TD width="8"><IMG height="8" src="/imgs/mb/msg.tl.gif" width="8" border="0"/></TD>
			<TD width="100%" background="/imgs/pvts/box-t-back.gif" bgcolor="#93D6FF"></TD>
			<TD width="8"><IMG height="8" src="/imgs/mb/msg.tr.gif" width="8" border="0"/></TD>
		</TR>
		<xsl:call-template name="iniziomsg">
			<xsl:with-param name="status" select="@uStatus"/>
			<xsl:with-param name="sexid" select="@sexid"/>
			<xsl:with-param name="certified" select="@certified"/>
			<xsl:with-param name="senderid" select="@senderid"/>
			<xsl:with-param name="nick" select="@nick"/>
			<xsl:with-param name="datetime" select="@datetime"/>
			<xsl:with-param name="subject" select="@subject"/>
		</xsl:call-template>
		<TR vAlign="top"> 
			<TD width="8" background="/imgs/pvts/box-l-back.gif" bgcolor="white"></TD>
			<TD width="100%" align="left" style="padding:2px;padding-bottom:10px;" bgcolor="white">
				<xsl:value-of select="@body" disable-output-escaping="yes"/>
  			</TD>
			<TD width="8" background="/imgs/pvts/box-r.gif" bgcolor="white"></TD>
		</TR>
		<xsl:call-template name="finemsg">
			<xsl:with-param name="msgid" select="@msgid"/>
			<xsl:with-param name="answerid" select="@answerid"/>
			<xsl:with-param name="senderid" select="@senderid"/>
		</xsl:call-template>

		<TR> 
			<TD width="8"><IMG height="8" src="/imgs/mb/msg.bl.gif" width="8" border="0"/></TD>
			<TD width="100%" background="/imgs/pvts/box-b.gif" bgcolor="#93D6FF"></TD>
			<TD width="8"><IMG height="8" src="/imgs/mb/msg.br.gif" width="8" border="0"/></TD>
		</TR>
</TABLE>


</xsl:template>

</xsl:stylesheet>